package com.zf.shuashua.ui.mine;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseViewHolder;
import com.meis.base.mei.adapter.MeiBaseAdapter;
import com.zf.shuashua.R;
import com.zf.shuashua.bean.ListVideo;

import java.util.List;

public class ListAdapter extends MeiBaseAdapter<ListVideo.DataBean> {

    public ListAdapter(int layoutResId, @Nullable List<ListVideo.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ListVideo.DataBean item) {
        helper.setText(R.id.tvNumber, item.getPraise_count() + "");
//        helper.setText(R.id.tvTitle, item.getDescription() + "");
        Glide.with(mContext)
                .load(item.getAvatar())
                .into((ImageView) helper.getView(R.id.imgAvatar));

    }
}